<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        background-color: palegreen;
        line-height: 100px;
      }
    </style>
  </head>
  <body>
    <div class="box">文字设置行高后，有高度吗？- 有的（盒子有文字内容）</div>
  </body>
</html>
